let express=require('express');
let router=express.Router();
let db=require('../sql.js');
router.get('/',function (req,res,next){

    db.query('select * from idea', function(err,data){
        if(err){
            throw err;
        }else{
            res.render('idea',{idea:data})
        }
    })
});



module.exports=router;
